<?php

namespace App\Tool;

use Illuminate\Support\Facades\Mail;

class SendEmailTools
{
    public function sendMail($user)
    {
        Mail::send('email.active', compact('user'), function($message) use($user)
        {
            $message->to($user->email, '亲爱的用户')->subject('验证你的邮箱');
        });
    }
}
